//
//  GameRootViewController.swift
//  d11
//
//  Created by rhonin on 2018/11/16.
//  Copyright © 2018年 Tech_001. All rights reserved.
//

import UIKit

class GameRootViewController: UIViewController {
    lazy var loadingView: UIView = {
        let V = UIHelper.initLoadView(self, withMessage: "读取中..")
        return V
    }()
    init() {
        let name = String(describing: type(of: self))
        super.init(nibName: name, bundle: nil)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    lazy var failBtn: UIButton = {
        let but = UIButton(type: UIButton.ButtonType.custom)
        but.addTarget(self, action: #selector(failreload), for: .touchUpInside)
        but.frame = CGRect(x: 0, y: 0, width: 100, height: 40)
        but.backgroundColor = UIColor.lightGray
        but.layer.cornerRadius = 5
        but.clipsToBounds = true
        but.setTitle("重新加载", for: .normal)
        but.setTitleColor(.white, for: .normal)
        return but
    }()
    @objc func failreload() {
        
    }
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
